
set path=%path%;C:\Program Files\Java\jdk1.5.0_11\bin\;

set classpath=.
set classpath=%classpath%;../../lib/hibernate3.jar
set classpath=%classpath%;../../lib/dom4j-1.6.1.jar
set classpath=%classpath%;../../lib/antlr-2.7.6.jar
set classpath=%classpath%;../../lib/asm-attrs.jar
set classpath=%classpath%;../../lib/asm.jar
set classpath=%classpath%;../../lib/cglib-2.1.3.jar
set classpath=%classpath%;../../lib/commons-collections-2.1.1.jar
set classpath=%classpath%;../../lib/commons-logging-1.0.4.jar
set classpath=%classpath%;../../lib/derby.jar
set classpath=%classpath%;../../lib/derbyclient.jar
set classpath=%classpath%;../../lib/derbytools.jar
set classpath=%classpath%;../../lib/jta.jar
set classpath=%classpath%;../../lib/log4j-1.2.11.jar


cd build/classes

rmic server.Main

start rmiregistry

java -Djava.security.policy=../../policy.all  server.Main

cd ../..